package jp.sourceforge.akjrcp.audiotools.actions;


import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;

import com.akjava.akjbetas.vocaloid.VsqToTxtViewer;
import com.akjava.vocaloidtools.wavtovsq.WavToVocaloidMidiViewer;

public class OpenVsqToTxt implements IWorkbenchWindowActionDelegate{

	public void dispose() {
		// TODO Auto-generated method stub
		
	}

	public void init(IWorkbenchWindow window) {
		// TODO Auto-generated method stub
		
	}

	public void run(IAction action) {
		IViewPart part;
		try {
			part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(VsqToTxtViewer.ID);
			
		} catch (PartInitException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
	
		
	}

	public void selectionChanged(IAction action, ISelection selection) {
		// TODO Auto-generated method stub
		
	}

}
